package com.landinfo.service.dto;


import java.io.Serializable;
import java.util.Objects;

/**
 * A DTO for the AppMapServiceManage entity.
 */
public class AppMapServiceManageDTO implements Serializable {

    private Long id;

    private String name;

    private String type;

    private String mapServiceUrl;

    private Boolean isShowByUser;

    private String users;

    private Boolean enable;

    private Integer sort;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMapServiceUrl() {
        return mapServiceUrl;
    }

    public void setMapServiceUrl(String mapServiceUrl) {
        this.mapServiceUrl = mapServiceUrl;
    }

    public Boolean isIsShowByUser() {
        return isShowByUser;
    }

    public void setIsShowByUser(Boolean isShowByUser) {
        this.isShowByUser = isShowByUser;
    }

    public String getUsers() {
        return users;
    }

    public void setUsers(String users) {
        this.users = users;
    }

    public Boolean isEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }
    
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        AppMapServiceManageDTO appMapServiceManageDTO = (AppMapServiceManageDTO) o;
        if(appMapServiceManageDTO.getId() == null || getId() == null) {
            return false;
        }
        return Objects.equals(getId(), appMapServiceManageDTO.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getId());
    }

    @Override
    public String toString() {
        return "AppMapServiceManageDTO{" +
            "id=" + getId() +
            ", name='" + getName() + "'" +
            ", type='" + getType() + "'" +
            ", mapServiceUrl='" + getMapServiceUrl() + "'" +
            ", isShowByUser='" + isIsShowByUser() + "'" +
            ", users='" + getUsers() + "'" +
            ", enable='" + isEnable() + "'" +
            "}";
    }
}
